package com.star.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Star
 * @since 2021-04-21
 */
@TableName("tb_order")
public class Order extends Model<Order> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;
    /**
     * 订单号
     */
    private String orderName;
    /**
     * 订单备注
     */
    private String orderRemarks;
    /**
     * 登入编号
     */
    private Integer logId;
    /**
     * 商铺菜品编号(多个value)
     */
    private String smId;
    /**
     * 商铺编号
     */
    private Integer shopId;
    /**
     * 订单价格
     */
    private Double smPrice;
    /**
     * 订单评价打分
     */
    private Integer smEvaluate;
    /**
     * 用户评论
     */
    @TableField("sm_leave_Msg")
    private String smLeaveMsg;
    /**
     * 评论状态
     */
    @TableField("sm_evaluate_State")
    private Integer smEvaluateState;
    /**
     * 支付状态
     */
    @TableField("sm_payment_State")
    private Integer smPaymentState;
    /**
     * 订单创建时间
     */
    @TableField("sm_create_Time")
    private Date smCreateTime;


    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public String getOrderRemarks() {
        return orderRemarks;
    }

    public void setOrderRemarks(String orderRemarks) {
        this.orderRemarks = orderRemarks;
    }

    public Integer getLogId() {
        return logId;
    }

    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    public String getSmId() {
        return smId;
    }

    public void setSmId(String smId) {
        this.smId = smId;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public Double getSmPrice() {
        return smPrice;
    }

    public void setSmPrice(Double smPrice) {
        this.smPrice = smPrice;
    }

    public Integer getSmEvaluate() {
        return smEvaluate;
    }

    public void setSmEvaluate(Integer smEvaluate) {
        this.smEvaluate = smEvaluate;
    }

    public String getSmLeaveMsg() {
        return smLeaveMsg;
    }

    public void setSmLeaveMsg(String smLeaveMsg) {
        this.smLeaveMsg = smLeaveMsg;
    }

    public Integer getSmEvaluateState() {
        return smEvaluateState;
    }

    public void setSmEvaluateState(Integer smEvaluateState) {
        this.smEvaluateState = smEvaluateState;
    }

    public Integer getSmPaymentState() {
        return smPaymentState;
    }

    public void setSmPaymentState(Integer smPaymentState) {
        this.smPaymentState = smPaymentState;
    }

    public Date getSmCreateTime() {
        return smCreateTime;
    }

    public void setSmCreateTime(Date smCreateTime) {
        this.smCreateTime = smCreateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.orderId;
    }

    @Override
    public String toString() {
        return "Order{" +
        ", orderId=" + orderId +
        ", orderName=" + orderName +
        ", orderRemarks=" + orderRemarks +
        ", logId=" + logId +
        ", smId=" + smId +
        ", shopId=" + shopId +
        ", smPrice=" + smPrice +
        ", smEvaluate=" + smEvaluate +
        ", smLeaveMsg=" + smLeaveMsg +
        ", smEvaluateState=" + smEvaluateState +
        ", smPaymentState=" + smPaymentState +
        ", smCreateTime=" + smCreateTime +
        "}";
    }
}
